package com.flyco.modules.system.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: sys_resource
 * @Author: flyco
 * @Date:   2022-12-07
 * @Version: V1.0
 */
@Data
@TableName("sys_resource")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_resource对象", description="sys_resource")
public class SysResource {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Integer id;
	/**资源父id*/
	@Excel(name = "资源父id", width = 15)
    @ApiModelProperty(value = "资源父id")
	private Integer parentId;
	/**资源类型 api/page/button/menu*/
	@Excel(name = "资源类型 api/page/button/menu", width = 15)
    @ApiModelProperty(value = "资源类型 api/page/button/menu")
	private String type;
	/**资源名称*/
	@Excel(name = "资源名称", width = 15)
    @ApiModelProperty(value = "资源名称")
	private String name;
	/**资源url地址，例如/f/member/{partnerId}-{storeId}/list/{mobile}*/
	@Excel(name = "资源url地址，例如/f/member/{partnerId}-{storeId}/list/{mobile}", width = 15)
    @ApiModelProperty(value = "资源url地址，例如/f/member/{partnerId}-{storeId}/list/{mobile}")
	private String value;
	@Excel(name = "资源url的匹配模板，例如/f/member/*/list/*", width = 15)
    @ApiModelProperty(value = "资源url的匹配模板，例如/f/member/*/list/*")
	private String patternValue;
	/**删除标志：0有效，1删除*/
	@Excel(name = "删除标志：0有效，1删除", width = 15)
    @ApiModelProperty(value = "删除标志：0有效，1删除")
	private Integer cancelFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
